rotationEffect

Rotates the view by a specified angle in degrees. You can optionally set the anchor point around which the rotation occurs.

Type

rotationEffect?: number | {
  degrees: number
  anchor: KeywordPoint | Point
}

Example

<Text rotationEffect={45}>Rotated</Text>

With anchor point:

<Text
  rotationEffect={{
    degrees: 30,
    anchor: "bottomTrailing"
  }}
>
  Custom Anchor
</Text>